package com.farmer.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDate;

@Data
public class Machinery {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private String type;
    private String status; // 空闲/使用中/维修中/租赁中
    private Long ownerId;
    private LocalDate purchaseDate;
    private LocalDate lastMaintenance;
    private String maintenanceInfo;
    private Long renterId;
    private LocalDate rentalStart;
    private LocalDate rentalEnd;
    private String dispatchInfo;
    private String remark;
}